package org.example.rtc.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.rtc.mapper.PatDrugMapper;
import org.example.rtc.mapper.UserMapper;
import org.example.rtc.model.entity.PatDrug;
import org.example.rtc.model.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.List;

@Service
public class PatDrugService extends ServiceImpl<PatDrugMapper, PatDrug> {

      public   List<PatDrug> getByPatId(String patId) {
            return list(new LambdaQueryWrapper<PatDrug>()
                    .eq(PatDrug::getPatId, patId)
            );
        }


}
